Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pyo3 as an optional dependency #160

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

cetra3
Copy link
Contributor

@cetra3 cetra3 commented Nov 6, 2024

This is a really small change, but currently if you are compiling jiter with default features, it will always bring in pyo3 to compile as well. With this syntax, it will prevent the num-bigint feature from pulling in pyo3.

Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.84%. Comparing base (e1d4c9f) to head (9729eff).
Report is 1 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (e1d4c9f) and HEAD (9729eff). Click for more details.

HEAD has 8 uploads less than BASE
Flag BASE (e1d4c9f) HEAD (9729eff)
12 4
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #160       +/-   ##
===========================================
- Coverage   91.90%   76.84%   -15.07%     
===========================================
  Files          12       12               
  Lines        2138     2138               
  Branches     2138     2138               
===========================================
- Hits         1965     1643      -322     
- Misses        109      422      +313     
- Partials       64       73        +9     

see 9 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e1d4c9f...9729eff. Read the comment docs.

Copy link

codspeed-hq bot commented Nov 6, 2024

CodSpeed Performance Report

Merging #160 will not alter performance

Comparing cetra3:pyo3_optional_dep (9729eff) with main (e1d4c9f)

Summary

✅ 73 untouched benchmarks

Copy link
Collaborator

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'll investigate coverage in a followup 👍

@davidhewitt davidhewitt merged commit a004d5f into pydantic:main Nov 6, 2024
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants